package com.gzq.singleton.exam90;

import java.io.Serializable;

public class DCL90 implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static DCL90 singleton;
	private static boolean init = false;

	private DCL90() {
	}

	public static DCL90 getSingleton() {
		if (!init) {
			synchronized (DCL90.class) {
				if (!init) {
					singleton = new DCL90();
					// 很多初始化单例的步骤
					init = true;
				}
			}
		}
		return singleton;
	}
}
